home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * cdev.h - standard cdev object
- *
- * Copyright (c) 1989 Symantec Corporation. All rights reserved.
- *
- */
-
- #define _H_cdev
-
- #include "oops.h"
-
- struct cdev : indirect {
-
- /* instance variables */
-
- WindowPeek dp; /* the Control Panel */
- int refnum; /* refnum of Control Panel DA */
- int rsrcID; /* base resource ID */
- int lastItem; /* # of last Control Panel item */
- EventRecord *event; /* ==> last event */
- long status; /* value to be returned */
-
- /* methods */
-
- long Message(int, int); /* dispatch message */
- void Error(long); /* set error return */
- void Init(void); /* "initDev" */
- void Close(void); /* "closeDev" */
- void Activate(void); /* "activDev" */
- void Update(void); /* "updateDev" */
- void Idle(void); /* "nulDev" */
- void ItemHit(int); /* "hitDev" */
- void Key(int); /* "keyEvtDev" */
- void CmdKey(int); /* "keyEvtDev" (command) */
- void Deactivate(void); /* "deactiveDev" */
- void Undo(void); /* "undoDev" */
- void Cut(void); /* "cutDev" */
- void Copy(void); /* "copyDev" */
- void Paste(void); /* "pasteDev" */
- void Clear(void); /* "clearDev" */
- void DoCursor(void); /* "cursorDev" */
- };
-
-
- /* each cdev must implement these */
-
- Boolean Runnable(void); /* "macDev" */
- cdev *New(void); /* new(cdev) */
-